home *** CD-ROM | disk | FTP | other *** search
- property pSpr
- global gNameChosen
-
- on beginSprite me
- pSpr = sprite(me.spriteNum)
- pSpr.editable = 1
- nameList = ["Your Name Here", "Barmeister 3000", "Sidney B. Artender", "Art Chainletter", "Poochie", "Bildo N. Dinky", "Rob Petri", "Laura Petulent", "Rhett Butler", "Ed Fong", "The Judge", "Alice Days", "Tropolis Van Ness", "Spyke Smith", "L. Dorado Hubbcap", "Amanda Huginkiss", "Zargon", "Barbara Anne", "Filthy McNasty", "Elizabeth Reed", "Uncle Sid", "Gilly Bates", "Suzanne Modesky", "Kaiser Roll", "Spot Check Billy", "Gregory Peccary", "Vornado Velatio", "Seve Bourbanis", "Boris Rourke", "Bruno", "Mickey Yeltsin", "Harvey Wallbanger", "Tom Collins", "Sam Malloy", "Lowell Washington", "Red", "Arnie 'The Professor' Morris", "Vincent van Hedgehog", "Rob Roy", "Tony Clifton", "Shirley Temple"]
- if not gNameChosen then
- chosen = randomFromList(nameList)
- pSpr.member.text = chosen
- hilite line 1 of field the member of pSpr
- end if
- end
-
- on endSprite me
- global gPlayerName
- gPlayerName = pSpr.member.text
- pSpr.editable = 0
- end
-
- on keyDown me
- case the key of
- 24:
- nothing()
- dontPassEvent()
- exit
- end case
- case the keyCode of
- 117, 51, 123, 124:
- pass()
- exit
- 53:
- quitSequence()
- abort()
- end case
- case the key of
- ENTER, RETURN, TAB:
- sendSprite(me.spriteNum - 1, #mouseUp)
- otherwise:
- gNameChosen = 1
- if onPC() then
- slop = 3
- else
- slop = 1
- end if
- if (charPosToLoc(pSpr.member, pSpr.member.text.length).locH > (pSpr.width - (slop * pSpr.member.fontSize))) and (the selStart = the selEnd) then
- beep()
- dontPassEvent()
- else
- pass()
- end if
- end case
- end
-